#ifndef FILE
#include <stdio.h>
#endif
typedef struct
	{
	int line, col, cur;
	unsigned int spaces:1, skipcomments:1;
	FILE *fp;
	} tTextFile;

typedef struct
	{
	int line, col, cur;
	long fpos;
	} tTextFilePos;

#define TF_SPACES 0x01 /* \n und \t durch spaces ersetzen */
#define TF_SKIPCOMMENTS 0x02
extern int TextOpenFile(tTextFile *tf, char *Name, int Flags);
extern int TextCloseFile(tTextFile *tf);
extern int TextFileGetPos(tTextFile *tf, tTextFilePos *tp);
extern int TextFileSetPos(tTextFile *tf, tTextFilePos *tp);
extern int TextCurC(tTextFile *tf);
extern int TextNextC(tTextFile *tf);
extern int TextNextNonSpace(tTextFile *tf);
extern int TextGetC(tTextFile *tf);
extern int TextGetNonSpace(tTextFile *tf);
extern int TextGetName(tTextFile *tf, char *s, int len);
extern int TextGetStringDelim(tTextFile *tf, char *s, int len, char *Delim);
extern int TextGetString(tTextFile *tf, char *s, int len);
extern int TextGetInt(tTextFile *tf, int *i);
